package com.vcms.utility.formatter;

/**
 * @author Team 7 PT
 * @version 1.0
 */

public class MoneyFormatter {

	public MoneyFormatter() {
	}

	public static String toMoney(int m) {
		int dolla = 0;

		while (m >= 100) {
			dolla = dolla + 1;
			m = m - 100;
		}

		if (dolla != 0) {
			if (m >= 10)
				return new String("$" + dolla + "." + m);
			else
				return new String("$" + dolla + ".0" + m);
		} else
			return new String(m + "C");
	}
}